package com.freeter.modules.gjs.service.impl;

import com.freeter.modules.gjs.service.EmailService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 邮件服务实现类
 * 简化版本，只记录日志，实际项目中应该集成真实的邮件发送功能
 */
@Service
public class EmailServiceImpl implements EmailService {
    
    private static final Logger logger = LoggerFactory.getLogger(EmailServiceImpl.class);
    
    @Override
    public void sendEmail(String to, String subject, String body) {
        logger.info("发送邮件 - 收件人: {}, 主题: {}, 内容: {}", to, subject, body);
        // 实际项目中这里应该调用真实的邮件发送服务
        // 例如：JavaMailSender、SendGrid、AWS SES等
    }
} 